import { requestHandler } from '@/utils/rquest';
import { IUser } from '@/interface/IUser'
const prefix = "/user";
/**
 * 问答贡献 questions
 * 社区贡献 community
 */

type Ttype = "questions" | "community";
export const contributeApi = (type: Ttype) => requestHandler<IUser[], { type: Ttype }>("GET", prefix + "/contribute", { type, });
